/*
 * ResourcesManager.h
 *
 *  Created on: 26-05-2013
 *      Author: Jarek
 */

#ifndef RESOURCESMANAGER_H_
#define RESOURCESMANAGER_H_

#include "GlobalData.h"
#include "ETexture.h"
#include "libpng/png.h"
#include <android/asset_manager.h>

#define MAX_TEXTURES			256

class ResourcesManager {
public:
	static AAsset* 		file;
private:
	Texture				*textures[MAX_TEXTURES];

private:

public:
	ResourcesManager();
	virtual ~ResourcesManager();

//	Texture*		loadPNG(AAsset* asset);
//	Texture*		getTexture(AAsset* asset, const char* name);
	Texture*		loadPNG(const char* filePath);
	Texture*		getTexture(const char* filePath);

	bool			removeTexture(Texture* texture);
};

extern ResourcesManager resourcesManager;

#endif /* RESOURCESMANAGER_H_ */
